/*
 * FileTraversal.java
 * business
 *
 * Created by SunDing on 2016/9/29.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.bean;

import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

@SuppressLint("ParcelCreator")
public class FileTraversal implements Parcelable {

    public static final Creator<FileTraversal> CREATOR =
            new Creator<FileTraversal>() {

                @Override
                public FileTraversal[] newArray(int size) {
                    return null;
                }

                @Override
                public FileTraversal createFromParcel(Parcel source) {
                    FileTraversal ft = new FileTraversal();
                    ft.filename = source.readString();
                    ft.filecontent = source.readArrayList(FileTraversal.class.getClassLoader());
                    ft.isSelected = source.readInt();
                    return ft;
                }
            };
    public String filename;
    public int isSelected;
    public List<String> filecontent = new ArrayList<>();

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(filename);
        dest.writeList(filecontent);
        dest.writeInt(isSelected);
    }
}
